<?php 
class userWu_Form_FrmAccessUser extends Zend_Form{
	public function formaccessuser(){
		$db = new Application_Model_DbTable_DbGlobal();
		$sql = "SELECT acl_id, CONCAT(module,'/', controller,'/', action) AS user_access, status 
						FROM rsv_acl_acl";
		$rows= $db->getGlobalDb($sql);
		//print_r($rows);exit();
		$options = array("" =>"- - - Select Type of Module & Controller - - -");
		foreach($rows as $read) $options[$read['acl_id']]= $read['user_access'];
		$moudules = new Zend_Form_Element_Select('acl_ids');
		$moudules->setMultiOptions($options);
		$moudules->setAttribs(array('acl_id'=>'user_access','class'=>'form-control validate[required]'));
		$this->addElements(array($moudules));
		return $this;
	}
	
}
?>